#! /bin/bash
find / typef -perm +6000 -ls 2>/dev/null
echo "要不要去掉文件S权限？是|否"
ab="y"
read CHOICE
case $CHOICE in
是|y|Y|yes|YES)
       while [ $ab = "y" ]
       do
         echo "想要改变哪个文件？写出文件完整路径。比如/usr/bin/locate"
         read file
         echo "你想改变的是以下文件？"
         ls -l $file
         echo "是|否"
         read sure
         if [ $sure = "是" -o $sure = "Y" -o $sure = "y" ]
         then
             chmod a-s $file
             ls -l $file
             echo "继续更改？y|n"
             read ab
         else
             echo "谢谢使用！"
             ab="否"
         fi
        done
;;
否|n|N|NO|no)echo "谢谢使用!"
;;
esac

